#                                               -*- Autoconf -*-
# Process this file with autoconf to produce a configure script.

AC_PREREQ(2.59)
AC_INIT(msg-transfer, 1.0.0, chain710@gmail.com)
AC_CONFIG_SRCDIR([msg_pack_transfer.cpp])
AC_CONFIG_HEADER([config.h])

AM_INIT_AUTOMAKE(msg-transfer, 1.0.0)

AC_PREFIX_DEFAULT(/usr/local/msg-transfer/)

# Checks for programs.
#AC_PROG_CXX
#AC_PROG_CC
#AC_PROG_LN_S
#AC_PROG_MAKE_SET
#AC_PROG_RANLIB
#AC_PROG_INSTALL
AC_PROG_LIBTOOL

AC_ARG_WITH(ezycli,
    AC_HELP_STRING([--with-ezycli=PATH], [Specify path to ezycli installation]),
    [EZYCLI_PREFIX=$with_ezycli],
    AC_MSG_ERROR([You must call configure with the --with-ezycli option])
)

AC_SUBST(EZYCLI_PREFIX)
EZYCLI_INC="${EZYCLI_PREFIX}/include"
AC_SUBST(EZYCLI_INC)

AC_ARG_WITH(msgcodec,
    AC_HELP_STRING([--with-msgcodec=PATH], [Specify path to msgcodec installation]),
    [EZYCLI_PREFIX=$with_msgcodec],
    AC_MSG_ERROR([You must call configure with the --with-msgcodec option])
)

AC_SUBST(MSGCODEC_PREFIX)
MSGCODEC_INC="${MSGCODEC_PREFIX}/include"
AC_SUBST(MSGCODEC_INC)

# Checks for libraries.


# Checks for header files.

# Checks for typedefs, structures, and compiler characteristics.

# Checks for library functions.

AC_OUTPUT([
    Makefile
])
